//
//  UIViewController+Acquisition.m
//  Fangxiaov
//
//  Created by safiri on 2017/3/7.
//  Copyright © 2017年 com.f. All rights reserved.
//

#import "UIViewController+Acquisition.h"

@implementation UIViewController (Acquisition)
+ (instancetype)instantiateViewControllerFromStoryBoard {
    UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"Main" bundle:[NSBundle mainBundle]];
    UIViewController *vc = [storyboard instantiateViewControllerWithIdentifier:NSStringFromClass(self)];
    return vc;
}
+ (instancetype)loadViewControllerFromStoryBoardWithID:(NSString *)storyBoardID {
    UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"Main" bundle:[NSBundle mainBundle]];
    return [storyboard instantiateViewControllerWithIdentifier:storyBoardID];
}
+ (instancetype)instantiateVCFromStoryBoard:(NSString *)sbName {
    UIStoryboard *storyboard = [UIStoryboard storyboardWithName:sbName bundle:[NSBundle mainBundle]];
    return [storyboard instantiateViewControllerWithIdentifier:NSStringFromClass(self)];
}
+ (instancetype)instantiateVCFromLoginStoryBoard {
    return [self instantiateVCFromStoryBoard:@"Login"];
}
//+ (instancetype)instantiateVCFromCarExamineStoryBoard {
//    return [self instantiateVCFromStoryBoard:@"CarExamine"];
//}
//+ (instancetype)instantiateVCFromCarWZDealStoryBoard {
//    return [self instantiateVCFromStoryBoard:@"CarWZDeal"];
//}

+ (instancetype) loadViewControllerFromNib{
    return [[self alloc] initWithNibName:NSStringFromClass(self) bundle:[NSBundle mainBundle]];
}
@end
